public class J01 {
    public static void main(String[] args) throws InterruptedException {
//        new Thread(()->{
//            for (int i = 0; i < 100; i++) {
//                System.out.println("i = " + i);
////                System.out.println(10/0);
//                System.exit(0);
//            }
//        }).start();
        Thread t = new Thread(()->{
            for (int i = 0; i < 100; i++) {
                System.out.println("i22222222 = " + i);
            }
        });
        t.join();
        t.start();
        t.join();

        System.out.println("main end");
        Thread.sleep(1000);
        t.start();
    }
}
